
import sys
import S3DPath
from S3D import QtHelper
from S3D.Config import Config
from S3D.Tools.Sound.MindistCalc import MainWindow

class MindistCalcConfig(Config):
    VERSION         = 2
    PATH            = "MindistCalc.config"

    def __init__(self):
        self.calcTarget     = MainWindow.MIN_DISTANCE # min distance
        self.maxVolume      = 0
        self.minDist        = 5
        self.headVolume     = -24
        self.headDist       = 80

if __name__ == '__main__':
    cfg = MindistCalcConfig.load()
    wnd = MainWindow.MainWindow(cfg)
    res = QtHelper.qApp.exec_()
    cfg.save()

    sys.exit(res)